package com.liqi.monitor.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author: lgh
 * @Date: 2022-10-27
 * @Description:
 */
@Data
@ApiModel(value = "模块和驱动dto")
public class DriveAndSdkDto {
    @ApiModelProperty(value = "驱动编码",required = true)
    @NotBlank(message = "驱动编码不能为空")
    private String driveCode;

    @ApiModelProperty(value = "驱动名称",required = true)
    @NotBlank(message = "驱动名称不能为空")
    private String driveName;

    @ApiModelProperty(value = "插件库名称",required = true)
    @NotBlank(message = "插件库名称不能为空")
    private String adapterName;

    @ApiModelProperty(value = "中间件不用传",hidden = true)
//    @NotBlank(message = "插件库版本不能为空")
    private String adapterVersion;

    @ApiModelProperty(value = "插件库版本")
//    @NotBlank(message = "插件库上一个版本不能为空")
    private String adapterLastVersion;

    @ApiModelProperty(value = "插件库版本")
//    @NotBlank(message = "插件库当前版本不能为空")
    private String adapterCurrentVersion;

    @ApiModelProperty(value = "中间件插件更新状态，前端不用管。中间件使用字段。 0=表示新建，1=表示执行成功，-1表示执行失败",required = true)
    private String operationResult;

    /**
     * 错误信息
     */
    @ApiModelProperty(value="前端不用处理 、中间件使用字段",hidden = true)
    private String operationErrorMessage;
}